<%@ page language="java" contentType="text/html; charset=UTF-8"
         isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
    String path = request.getContextPath();
%>
<script>
    function loadTop() {
  
        var topframe = parent.frames.topFrame;
        topframe.location = "top.action";
    }
    
    function del() {
        var msgs = "确认删除记录吗？";
        if (confirm(msgs) == true) {
            return true;
        } else {
            return false;
        }
    }
</script>
<html>
    <head>
                <style>
body,td,th{font-size:12px}
.alllisttitle{ padding-left:10px}
a:link,a:visited{ color:#000000; text-decoration:none}
a:hover{ color:#ff0000; text-decoration:none}
select{ background:#ffffff!important}
</style>
        <title>单证类型定义</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="../css/style.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="<%=path%>/js/jquery/jquery-1.6.1.min.js"></script>

    </head>

    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
          onLoad="loadTop();">
         <s:form action="list" method='post' theme="simple" name="form"
                    namespace="/documentCat">
                <s:hidden id="page" name="page"></s:hidden>
                <s:hidden id="pageSize" name="pageSize"></s:hidden>
       </s:form>
        <table width="99%" border="0" align="center" cellpadding="0"
               cellspacing="0">
            <tr>
                <td width="60%"></td>
                <td width="20%">
                </td>
                <td height="30" align="right">
                    <table width="60" border="0" cellpadding="0" cellspacing="0"
                           background="../images/addnew002.gif">

                        <tr onClick="window.location='addInput.action?pid=${cat.pid}'"
                            style="cursor: hand;">
                            <td>
                                <img src="../images/addnew001.gif">
                            </td>
                            <td nowrap>
                                新建单证类别
                            </td>
                            <td align="right">
                                <img src="../images/addnew003.gif">
                            </td>
                        </tr>

                    </table>
            </tr>
        </table>
        <table width="99%" border="0" align="center" cellpadding="0"
               cellspacing="1" bgcolor="#b5d6e6">
             <tr>
                <td height="22" colspan="7" align="left"
                    background="../images/main20100521_58.gif" class="alllisttitle">
                    单证类别列表
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td height="22" align="center"
                    background="../images/main20100521_58.gif" class="alllisttitle">
                    序号
                </td>
                  <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    单证类别编码
                </td>          
                <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    单证类别名称
                </td>             
               
                <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    所属单证性质
                </td>
                 <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    备注
                </td>
                  <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">修改</td>
                <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">删除</td>
            </tr>
            <s:iterator value="pageBean.list" var="department" status="stat">
                <tr bgcolor="#FFFFFF" onMouseOver="this.bgColor='#e3f0f7'"
                    onMouseOut="this.bgColor='#FFFFFF'">
                    <td height="19" align="left">
                        ${stat.index+1}
                    </td>
                    <td height="19" align="left">
                        <s:property value="userCode" />
                    </td>
                    <td align="left">
                        <s:property value="name" />
                    </td>
                   
                    <td align="left">  
                        <s:property value="groupName" />
              
                    </td>
                     <td align="left">
                        <s:property value="des" />
                    </td>
                      <td align="center">
                        <a href="updateInput.action?catId=${id}&page=${page}"><img src="../images/img3.gif"></a>

                    </td>
                    <td align="center">
                        <a href="delete.action?cat.id=${id}&page=${page}"
                           onclick="javascript:return del()"><img src="../images/img2.gif"></a>

                    </td>
                </tr>
            </s:iterator>
        </table>
        <s:include value="/common/page.jsp"/>
    </body>
</html>
